package com.ssyx.acl.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ssyx.model.acl.Role;
import com.ssyx.vo.acl.RoleQueryVo;

import java.util.Map;

/**
 * ClassName:RoleService
 * Description:
 *
 * @Author kay
 * @Create 2024/4/23 17:18
 * @Version 1.0
 */
public interface RoleService extends IService<Role> {
    //角色条件分页查询
    IPage<Role> getRolePage(Page<Role> pageParam, RoleQueryVo roleQueryVo);

    //根据用户获取角色数据
    Map<String, Object> getRoleByAdminId(Long adminId);

    //根据用户分配角色
    void saveUserRoleRealtionShip(Long adminId, Long[] roleIds);
}
